import { Module } from '@nestjs/common';
import { MredisService } from './mredis.service';
import { RedisModule } from 'nestjs-redis';

const DefaultConfig = {
  // HostPort: 3003,
  Socket: {
    prot: 30030,
    namespace: 'events',
  },
  Redis: {
    port: 6379,
    host: '127.0.0.1',
    password: '',
  },
};

@Module({
  imports: [RedisModule.register(DefaultConfig.Redis)],
  providers: [MredisService],
  exports: [MredisService],
})
export class MredisModule {}
